from django.db import models

# Create your models here.
from dvadmin.utils.models import CoreModel


class AppClassModel(CoreModel):
    title = models.CharField(max_length=255, verbose_name="标题")
    keyword = models.CharField(max_length=255, verbose_name="关键词")
    content = models.TextField(verbose_name="内容")
    imgurl = models.CharField(max_length=255,verbose_name="图片")
    hits = models.IntegerField(verbose_name="浏览量")

    class Meta:
        db_table = "appname"
        verbose_name = '新闻资讯表'
        verbose_name_plural = verbose_name
        ordering = ('-create_datetime',)